public class TestB extends TestA{
    public int x = 5;
    public int z = 10;

    public static void main(String[] args) {
        TestA a = new TestB();
        TestB b = (TestB) new TestA();
        System.out.println(a.x);
        System.out.println(b.y);
    }
}
